package com.kim.smartring.activity.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.kim.smartring.R;
/**
 * 目标页
 * 
 */
public class TargetFragment extends BaseFragment {
	private ImageView img_menu;
	private RelativeLayout rl_step_setting;//设置每天走多少步
	private RelativeLayout rl_sleep_setting;//设置每天睡多久
	private TextView txv_step;//步数显示
	private TextView txv_sleep;//睡眠时间显示
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View v = inflater.inflate(R.layout.target_layout, null);

		img_menu = (ImageView) v.findViewById(R.id.img_menu);
		rl_step_setting = (RelativeLayout) v.findViewById(R.id.rl_walk_setting);
		rl_sleep_setting = (RelativeLayout) v.findViewById(R.id.rl_sleep_setting);
		txv_step = (TextView) v.findViewById(R.id.txv_step);
		txv_sleep = (TextView) v.findViewById(R.id.txv_sleep_time);

		img_menu.setOnClickListener(this);
		rl_step_setting.setOnClickListener(this);
		rl_sleep_setting.setOnClickListener(this);
		return v;
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.img_menu:
			showSlidingMenu();
			break;
		case R.id.rl_walk_setting:
			
			break;
		case R.id.rl_sleep_setting:
			
			break;

		default:
			break;
		}
	}

}
